package com.woniu.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 核心企业-用户
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CoreUser {
    @TableId(type = IdType.ASSIGN_UUID)//uuid
    private String userId;//主键
    private Integer userDepartmentId;//部门id
    private String userName;//姓名
    private String userAccount;//账户
    private String userPassword;//密码
    private String userPhone;//手机号
    private String userCoreId;//核心企业id
    private List<String> auths;//权限


    @TableField(exist = false)
    private CoreAuth coreAuth; //菜单
}
